/**
 * 
 */
package org.dragonfire.util.token;

/**
 * @author Darth Android
 * @date Sep 2, 2007
 */
public class Token {

	private byte[] bytes;
	private String name;
	private String editText;
	private String displayText;

	/**
	 * @param bytes
	 * @param name
	 * @param editText
	 * @param displayText
	 */
	public Token(byte[] bytes, String name, String editText, String displayText) {
		super();
		this.bytes = bytes;
		this.name = name;
		this.editText = editText;
		this.displayText = displayText;
	}

	public int getSize() {
		return getBytes().length;
	}

	/**
	 * @return the bytes
	 */
	public byte[] getBytes() {
		return bytes;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the editText
	 */
	public String getEditText() {
		return editText;
	}

	/**
	 * @return the displayText
	 */
	public String getDisplayText() {
		return displayText;
	}

}
